﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/default.Master" CodeBehind="RoleManage.aspx.cs" Title="系统权限管理" Inherits="Webcar.SysManage.RoleManage" %>

<%@ Register Src="../Controls/UProgress.ascx" TagName="UProgress" TagPrefix="uc2" %>

<%@ Register Src="../Controls/NaviBar.ascx" TagName="NaviBar" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<div id = "RoleManage">
<uc1:NaviBar ID="NaviBar1" runat="server" />
<p></p>
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div class = "AddRole div_taobao_pic">
    <table>
        <tr>
            <td>
            在这里新增角色：
            </td>
            <td>
            <asp:TextBox ID="tbRoleName" Width="120px" runat="server" Height="12px"></asp:TextBox>
            </td>
            <td>
            <asp:LinkButton ID="LinkButton1" runat="server" OnClick="Button2_Click">保存</asp:LinkButton>
            </td>
        </tr>
    </table>
    </div>
    <hr class="line_blue" style="margin-right:50px;"/>    
    <div class = "UserGroup div_taobao">
        
        <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand" OnItemDataBound="Repeater1_ItemDataBound">
            <ItemTemplate>
            <div class="GroupList">
              &nbsp;&nbsp;<asp:Image ID="Image1" runat="server" ImageUrl="~/App_Themes/Default/image2/users_icon.gif" />
              <br />
               <asp:LinkButton ID="DelBtn" ForeColor="red" runat="server"  CommandName="del"
               CommandArgument='<%# Bind("group_code") %>'>删除</asp:LinkButton>
              <asp:LinkButton ID="EditBtn" runat="server" CausesValidation="False" CommandName="GroupDetail" 
              CommandArgument='<%# Bind("group_code") %>'
                 Text='<%# Bind("group_note") %>'></asp:LinkButton>
              
                 
              </div>
            </ItemTemplate>
        </asp:Repeater>
   </div>
   
   
   <div class="PrivligeGroup">
   <div class="div_taobao_pic">
   <asp:Label ID="Label2" runat="server" Text=""></asp:Label>
   </div>
    <hr class="line_blue"/>
       &nbsp;
       <asp:GridView ID="GridView1" runat="server" SkinID="gridviewSkin"  AutoGenerateColumns="False" ShowHeader="False" Width="100%" GridLines="Horizontal" DataKeyNames="purviewid">
           <Columns>
               <asp:TemplateField>
                   
                   <ItemTemplate>
                       &nbsp;<asp:Label ID="Label2" runat="server" Text='<%# Bind("module_name") %>'></asp:Label>
                   </ItemTemplate>
               </asp:TemplateField>
               <asp:TemplateField>
                  
                   <ItemStyle Height="20px" Width="60%" VerticalAlign="Middle" />
                   <ItemTemplate>
                   <img alt="" src="../App_Themes/Default/image2/up.gif" />
                       <asp:Label ID="Label1" runat="server" Text='<%# Bind("purview_name") %>'></asp:Label>
                   </ItemTemplate>
               </asp:TemplateField>
               <asp:TemplateField>
                   
                   <ItemTemplate>
                       <asp:RadioButton ID="rbYes" GroupName="1" runat="server" Text ="允许"/>
                       <asp:RadioButton ID="rbNo" GroupName="1" runat="server"  Text ="拒绝"/>
                       
                   </ItemTemplate>
               </asp:TemplateField>
           </Columns>
       </asp:GridView>
       <hr class="line_blue"/>
       <div class="buttonArea">
       <asp:Label ID="Label3" runat="server" ForeColor="Red"></asp:Label>
       <asp:Button ID="Button1" runat="server" SkinID="default_button" Text="保存" Width="56px" OnClick="Button1_Click" />
       </div>
   </div>     
   </ContentTemplate>
    </asp:UpdatePanel>
    
    &nbsp;
    <uc2:UProgress ID="UProgress1" runat="server" />
</div>
</asp:Content>